Skip to content

Ensure that FileInfo return values as required by its phpdoc.#4001

Merged
MorrisJobke merged 2 commits into
masterfrom
backport-27389
Mar 23, 2017
Merged

Ensure that FileInfo return values as required by its phpdoc.#4001
MorrisJobke merged 2 commits into
masterfrom
backport-27389

Conversation

@MorrisJobke

Copy link
Copy Markdown
Member

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@mention-bot

Copy link
Copy Markdown

@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @nickvergessen and @LukasReschke to be potential reviewers.

Comment thread lib/private/Files/FileInfo.php Outdated
* @return int
* Get FileInfo ID or null in case of part file
*
* @return int/null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎 | not slash

Comment thread lib/private/Files/FileInfo.php Outdated
*/
public function getId() {
return $this->data['fileid'];
return isset($this->data['fileid']) ? intval($this->data['fileid']) : null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EA complains to use (int) instead.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@MorrisJobke MorrisJobke merged commit eee7e97 into master Mar 23, 2017
@MorrisJobke MorrisJobke deleted the backport-27389 branch March 23, 2017 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants